package io.fredia.femicro.txManager.api.service;

import java.util.List;

import com.lorne.core.framework.exception.ServiceException;

import io.fredia.femicro.txManager.compensate.model.TxModel;
import io.fredia.femicro.txManager.model.ModelName;
import io.fredia.femicro.txManager.model.TxState;

/**
 * create by lorne on 2017/11/12
 */
public interface ApiAdminService {

	TxState getState();

	String loadNotifyJson();

	List<ModelName> modelList();

	List<String> modelTimes(String model);

	List<TxModel> modelInfos(String path);

	boolean compensate(String path) throws ServiceException;

	boolean hasCompensate();

	boolean delCompensate(String path);

}
